package edu.fdzc.springboot01.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.fdzc.springboot01.entity.Department;
import edu.fdzc.springboot01.vo.DeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper extends BaseMapper<Department> {
    DeptVo selectDeptWithUsers(@Param("id") Integer id);
    List<DeptVo> selectAllDeptsWithUsers();
}